{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="row[username]" autocomplete="off" placeholder="用户名" class="layui-input"
                   value="{$data.username}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系人</label>
        <div class="layui-input-block">
            <input type="text" name="row[name]" autocomplete="off" placeholder="联系人" class="layui-input"
                   value="{$data.name}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" name="row[phone]" autocomplete="off" placeholder="联系电话" class="layui-input"
                   value="{$data.phone}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">服务站服务站名称</label>
        <div class="layui-input-block">
            <input type="text" name="row[business_name]" autocomplete="off" placeholder="用户名" class="layui-input"
                   value="{$data.business_name}" readonly="readonly">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 220px !important;">身份证正面照\反面\营业执照\其他</label>
        <div class="layui-input-block">
            <ul class="layui-row list-inline plupload-preview" id="p-pic">
                <li class="file-item thumbnail"><a href="javascript:;">
                    <img data-image=""
                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"
                         data-original="{$data.id_font}"
                         src="{$data.id_font}">
                </a>
                </li>
                <li class="file-item thumbnail"><a href="javascript:;">
                    <img data-image=""
                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"
                         data-original="{$data.id_back}"
                         src="{$data.id_back}">
                </a>
                </li>
                <li class="file-item thumbnail"><a href="javascript:;">
                    <img data-image=""
                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"
                         data-original="{$data.business_license}"
                         src="{$data.business_license}">
                </a>
                </li>
                {if($data.other_license)}
                <li class="file-item thumbnail"><a href="javascript:;">
                    <img data-image=""
                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"
                         data-original="{$data.other_license}"
                         src="{$data.other_license}">
                </a>
                </li>
                {/if}
            </ul>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">详细地址</label>
        <div class="layui-input-block">
            <input type="text" name="row[address]" autocomplete="off" placeholder="用户名" class="layui-input"
                   value="{$data.address}" readonly="readonly">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">营业名称</label>
        <div class="layui-input-block">
            <input type="text" name="row[yingye_name]" autocomplete="off" placeholder="营业名称" class="layui-input"
                   value="{$data.yingye_name}"  >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开户行</label>
        <div class="layui-input-block">
            <input type="text" name="row[bank_name]" autocomplete="off" placeholder="开户行" class="layui-input"
                   value="{$data.bank_name}"  >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">银行卡号</label>
        <div class="layui-input-block">
            <input type="text" name="row[bank_no]" autocomplete="off" placeholder="银行卡号" class="layui-input"
                   value="{$data.bank_no}"  >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">营业执照地址</label>
        <div class="layui-input-block">
            <input type="text" name="row[yingye_address]" autocomplete="off" placeholder="营业执照地址" class="layui-input"
                   value="{$data.yingye_address}" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">接收地址邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="row[receive_email]" autocomplete="off" placeholder="接收地址邮箱" class="layui-input"
                   value="{$data.receive_email}" >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">所属运营部门</label>
        <div class="layui-input-block">
            <select name="row[belong_admin_id]" lay-verify="required" lay-search="">
                <option value="">所属运营部门</option>
                {if !empty($admin_list)}
                {foreach name="admin_list" item="vo"}
                <option value="{$vo.id}"
                <?php if( $vo['id'] == $data['belong_admin_id']){ ?> selected <?php }?>>{$vo.nickname}</option>
                {/foreach}
                {/if}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-block">
            {if $data.status==0}
            <input type="radio" name="row[status]" value="0" title="待审核" {if $data.status==0}checked{/if}>
            {else}
            <input type="radio" disabled="disabled" name="row[status]" value="0" title="待审核" {if
                   $data.status==0}checked{/if}>
            {/if}
            <input type="radio" name="row[status]" value="1" title="审核通过" {if $data.status==1}checked{/if}>
            <input type="radio" name="row[status]" value="2" title="冻结" {if $data.status==2}checked{/if}>
        </div>
    </div>

    <input type="hidden" name="row[id]" value="{$data.id}">
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>提交</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm', 'laydate'], function () {
        var yznForm = layui.yznForm,
            laydate = layui.laydate;
        yznForm.bindevent($("form.layui-form"));
        laydate.render({
            elem: '#ID-laydate'
        });
    });
</script>
{/block}